package com.yiwei.hdb.api.callback;

import com.yiwei.hdb.api.bean.UploadSubmitIdcardBean;
import com.yiwei.hdb.api.contract.BaseContract;
import com.yiwei.hdb.model.AddressModel;
import com.yiwei.hdb.model.BankListModel;
import com.yiwei.hdb.model.IdentityModel;
import com.yiwei.hdb.model.RelativeListModel;
import com.yiwei.hdb.model.ResponseModel;

/**
 * Created by Administrator on 2017/5/14.
 */

public interface IdcardV2Contract {
    interface View extends BaseContract.BaseView {
        void getIdentityInfoSuccess(int poi, IdentityModel item);

        void getSubmitidCardSuccess(ResponseModel item);

        void getChsiCodeSuccess(ResponseModel item);

        void getChsiLoginSuccess(ResponseModel item);

        void getChsiLoginFail(ResponseModel item);

        void getChsiNeedCode(String code);

        void getBankListSuccess(BankListModel item);

        void animationOneEnd();

        void getRelativeAddressSuccess();

        void updateAddressSuccess(AddressModel item);

        void getQuotaSuccess(String quota);

        void getRelativeListSuccess(RelativeListModel item);
    }

    interface Presenter<T> extends BaseContract.BasePresenter<T> {
        void getIdentityInfo(int paramInt, String paramString);

        void getSubmitidCard(UploadSubmitIdcardBean item);

        void getChsiCode(String username, String password);

        void getChsiLogin(String username, String password, String captcha);

        void getBankList();

        void getRelativeAddress(String address, String name, String mobile, String relationship);

        void updateAddress(String name, String address, String phone, String province, String city, String area);

        void getQuota();

        void getRelativeList();
    }
}
